<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const s1 = 100;
        const s2 = 200;
        const s3 = 300;
        const s4 = 400;
        // 订单状态 100未付款 200已付款未发货 300已付款已收获
        const orderCodes = [s1, s2, s3]; // 引用类型  orderCodes指向的不是数组，orderCodes是一个引用
        let order1 = {
            id: '23ry23y9r4y32',
            status: orderCodes[1],
            money: 999
        }
        console.log(orderCodes);
        console.log(order1);
    </script>
</body>
</html>